import {
	post,
	get
} from "./http";

//开始充电
export const startChargeApi = (data) =>
	post("/api/charge/startCharge", data);
//结束充电
export const stopChargeApi = (data) =>
	post("/api/charge/stopCharge", data);
//充电
export const getChargingOrderAPi = (data) =>
	get("/api/order/getChargingOrder", data);
//充电订单
export const getChargeOrderlistAPi = (data) =>
	get("/api/order/getChargeOrderlist", data);
//充电订单详情
export const getChargeOrderDetailAPi = (data) =>
	get("/api/order/getChargeOrderDetail", data);
//扫码充电
export const getDeviceByDeviceNoAPi = (data) =>
	get("/api/device/getDeviceByDeviceNo", data);
//充值
export const createAPi = (data) =>
	post("/api/recharge/create", data);
